/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconService: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M512 96c191.328 0 346.976 152.64 351.872 342.784L864 448v192c0 139.04-98.496 255.04-229.536 282.048a64 64 0 1 1-6.944-64A224.32 224.32 0 0 0 790.72 704L704 704a64 64 0 0 1-64-64v-160a64 64 0 0 1 64-64h94.24a288.032 288.032 0 0 0-572.48 0H320a64 64 0 0 1 64 64v160a64 64 0 0 1-64 64H224a64 64 0 0 1-64-64v-192C160 253.6 317.6 96 512 96z m-192 384H224v160h96v-160z m480 0h-96v160h96v-160z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconService.defaultProps = {
  size: 18,
};

export default IconService;
